package team.szm.scd.database.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.OrderBy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Topic {
    @TableId(value = "tid", type = IdType.ASSIGN_ID)
    String id;
    @TableField("uid")
    String userId;
    String title;
    String content;
    @OrderBy
    LocalDateTime createTime;
}
